home *** CD-ROM | disk | FTP | other *** search
/ USGS: National Coal Resou…s & Great Plains Regions / USGS National Coal Resource Assessment 1999 - Northern Rocky Mountains & Great Plains Regions - Disc 2.iso / PROGRAM / Tools / shpprop.avx < prev    next >
Encoding:
Text File  |  1998-07-10  |  48.3 KB  |  1,068 lines

  1. /3.1
  2. (Extension.1
  3.     Name:    "Shape Properties Dialog, ver.1.0"
  4.     Dependencies:    "$AVBIN/avdlog.dll\n"
  5.     FirstRootClassName:    "AVDLog"
  6.     Roots:    2
  7.     Roots:    51
  8.     Roots:    87
  9.     Roots:    119
  10.     Roots:    120
  11.     Roots:    121
  12.     Roots:    122
  13.     Roots:    123
  14.     Roots:    124
  15.     Roots:    125
  16.     Roots:    126
  17.     Roots:    127
  18.     Roots:    128
  19.     Roots:    129
  20.     Roots:    130
  21.     Roots:    131
  22.     Roots:    132
  23.     Roots:    133
  24.     Roots:    134
  25.     Roots:    135
  26.     Roots:    136
  27.     Roots:    137
  28.     Roots:    138
  29.     Roots:    139
  30.     Roots:    140
  31.     Version:    31
  32.     About:    "Shape Properties Dialog, 1.0\nTue Jun 09 16:33:34 1998"
  33.     CanUnloadScript:    141
  34.     UnloadScript:    142
  35.     InstallScript:    143
  36.     UninstallScript:    144
  37.     ExtVersion:    1
  38. )
  39.  
  40. (AVDLog.2
  41.     Name:    "ShapeWin"
  42.     X:    21
  43.     Y:    58
  44.     W:    319
  45.     H:    218
  46.     HelpTopic:    "Shape_Properties"
  47.     ConstrainedControlNames:    3
  48.     ConstrainedControlNames:    4
  49.     ConstrainedControlNames:    5
  50.     ConstrainedControlNames:    6
  51.     ConstrainedControlNames:    7
  52.     ConstrainedControlNames:    8
  53.     Constraints:    9
  54.     Constraints:    10
  55.     Constraints:    11
  56.     Constraints:    12
  57.     Constraints:    13
  58.     Constraints:    14
  59.     Server:    15
  60.     ControlPanel:    16
  61.     ObjectTag:    49
  62.     Title:    "Shape Properties"
  63.     EscapeEnabled:    1
  64.     AlwaysOnTop:    1
  65.     HasTitleBar:    1
  66.     Closeable:    1
  67.     Activate:    "ShapeWin.Activate"
  68.     Close:    "ShapeWin.Close"
  69.     Open:    "ShapeWin.Open"
  70.     DefaultButton:    50
  71. )
  72.  
  73. (AVStr.3
  74.     S:    "Apply"
  75. )
  76.  
  77. (AVStr.4
  78.     S:    "Cancel"
  79. )
  80.  
  81. (AVStr.5
  82.     S:    "OK"
  83. )
  84.  
  85. (AVStr.6
  86.     S:    "delete"
  87. )
  88.  
  89. (AVStr.7
  90.     S:    "add"
  91. )
  92.  
  93. (AVStr.8
  94.     S:    "Edit"
  95. )
  96.  
  97. (Numb.9
  98.     N:    102.00000000000000
  99. )
  100.  
  101. (Numb.10
  102.     N:    102.00000000000000
  103. )
  104.  
  105. (Numb.11
  106.     N:    102.00000000000000
  107. )
  108.  
  109. (Numb.12
  110.     N:    86.00000000000000
  111. )
  112.  
  113. (Numb.13
  114.     N:    86.00000000000000
  115. )
  116.  
  117. (Numb.14
  118.     N:    86.00000000000000
  119. )
  120.  
  121. (Nil.15
  122. )
  123.  
  124. (CPanel.16
  125.     Child:    17
  126.     Child:    19
  127.     Child:    21
  128.     Child:    23
  129.     Child:    24
  130.     Child:    25
  131.     Child:    27
  132.     Child:    28
  133.     Child:    29
  134.     Child:    30
  135.     Child:    32
  136.     Child:    33
  137.     Child:    35
  138.     ResBox:    36
  139.     ResBox:    37
  140.     ResBox:    38
  141.     ResBox:    39
  142.     ResBox:    40
  143.     ResBox:    41
  144.     ResBox:    42
  145.     ResBox:    43
  146.     ResBox:    44
  147.     ResBox:    45
  148.     ResBox:    46
  149.     ResBox:    47
  150.     ResBox:    48
  151.     Listening:    1
  152. )
  153.  
  154. (AVLBox.17
  155.     InternalName:    "ShapeList"
  156.     Help:    "Displays a list of points making up the shape // Displays a list of points making up the shape"
  157.     NextControl:    17
  158.     ContentKind:    4
  159.     Constraints:    0x33
  160.     ColumnCount:    1
  161.     HorizontalScroll:    1
  162.     Listening:    1
  163.     VerticalScroll:    1
  164.     Select:    "ShapeWin.SelectPoint"
  165.     SelectionStyle:    18
  166.     Apply:    "ShapeWin.ApplyPoint"
  167. )
  168.  
  169. (AVEnum.18
  170.     Name:    "LISTBOX_SELECTION_MULTIRANGE"
  171. )
  172.  
  173. (TextLine.19
  174.     InternalName:    "ShapeType"
  175.     Help:    "Displays the shape type // Displays the shape type"
  176.     Label:    "Shape Type"
  177.     Constraints:    0x55
  178.     Listening:    1
  179.     ReadOnly:    1
  180.     TextType:    20
  181.     Size:    15
  182.     NextControl:    15
  183. )
  184.  
  185. (AVEnum.20
  186.     Name:    "TEXTLINE_TYPE_ALL"
  187. )
  188.  
  189. (TextLine.21
  190.     InternalName:    "NumVertex"
  191.     Help:    "Displays the number of vertices // Displays the number of vertices"
  192.     Label:    "# of Vertices"
  193.     Constraints:    0x55
  194.     Listening:    1
  195.     ReadOnly:    1
  196.     TextType:    22
  197.     Size:    4
  198.     NextControl:    15
  199. )
  200.  
  201. (AVEnum.22
  202.     Name:    "TEXTLINE_TYPE_INTEGER"
  203. )
  204.  
  205. (LButn.23
  206.     InternalName:    "Apply"
  207.     Label:    "Do not delete the button"
  208.     Click:    "ShapeWin.Apply"
  209. )
  210.  
  211. (LButn.24
  212.     InternalName:    "Cancel"
  213.     Help:    "Press to return to the inital shape//Press to return to the inital shape"
  214.     Label:    "Cancel"
  215.     Click:    "ShapeWin.Cancel"
  216. )
  217.  
  218. (Butn.25
  219.     InternalName:    "delete"
  220.     Help:    "Delete the Selected Point(s) //Delete the Selected Point(s)"
  221.     Icon:    26
  222.     Click:    "ShapeWin.DeletePT"
  223. )
  224.  
  225. (AVIcon.26
  226.     Name:    "AlignNone"
  227.     Res:    "Icons.AlignNone"
  228.  
  229. )
  230.  
  231. (LButn.27
  232.     InternalName:    "OK"
  233.     Help:    "Press to accept the changes to the shape //Press to accept the changes to the shape"
  234.     Label:    "OK"
  235.     Click:    "ShapeWin.OK"
  236. )
  237.  
  238. (TextLabel.28
  239.     InternalName:    "aTextLabel17"
  240.     Constraints:    0x56
  241.     Label:    "Edit"
  242.     Listening:    1
  243. )
  244.  
  245. (TextLabel.29
  246.     InternalName:    "aTextLabel18"
  247.     Constraints:    0x56
  248.     Label:    "Delete"
  249.     Listening:    1
  250. )
  251.  
  252. (Butn.30
  253.     InternalName:    "add"
  254.     Help:    "Click to add a new point // Click to add a new point"
  255.     Icon:    31
  256.     Click:    "ShapeWin.Add PT"
  257. )
  258.  
  259. (AVIcon.31
  260.     Name:    "AddMatch"
  261.     Res:    "Icons.AddMatch"
  262.  
  263. )
  264.  
  265. (TextLabel.32
  266.     InternalName:    "aTextLabel20"
  267.     Constraints:    0x56
  268.     Label:    "Add"
  269.     Listening:    1
  270. )
  271.  
  272. (Butn.33
  273.     InternalName:    "Edit"
  274.     Help:    "Select to edit the point location //Select to edit the point location "
  275.     Icon:    34
  276.     Click:    "ShapeWin.ApplyPoint"
  277. )
  278.  
  279. (AVIcon.34
  280.     Name:    "SelectEdit"
  281.     Res:    "Icons.SelectEdit"
  282.  
  283. )
  284.  
  285. (AVCBox.35
  286.     InternalName:    "UpdateShape"
  287.     Help:    "Select this to update the AREA, PERIMETER, and LENGTH fields //Select this to update the AREA, PERIMETER, and LENGTH fields "
  288.     Listening:    1
  289.     Selected:    1
  290.     Label:    "Update Shape Attributes"
  291.     Constraints:    0x65
  292. )
  293.  
  294. (RectD.36
  295.     Left:    10.00000000000000
  296.     Top:    162.00000000000000
  297.     Right:    232.00000000000000
  298.     Bottom:    30.00000000000000
  299. )
  300.  
  301. (RectD.37
  302.     Left:    8.00000000000000
  303.     Top:    27.00000000000000
  304.     Right:    164.00000000000000
  305.     Bottom:    7.00000000000000
  306. )
  307.  
  308. (RectD.38
  309.     Left:    183.00000000000000
  310.     Top:    27.00000000000000
  311.     Right:    315.00000000000000
  312.     Bottom:    7.00000000000000
  313. )
  314.  
  315. (RectD.39
  316.     Left:    203.00000000000000
  317.     Top:    269.00000000000000
  318.     Right:    299.00000000000000
  319.     Bottom:    241.00000000000000
  320. )
  321.  
  322. (RectD.40
  323.     Left:    216.00000000000000
  324.     Top:    213.00000000000000
  325.     Right:    312.00000000000000
  326.     Bottom:    185.00000000000000
  327. )
  328.  
  329. (RectD.41
  330.     Left:    240.00000000000000
  331.     Top:    138.00000000000000
  332.     Right:    268.00000000000000
  333.     Bottom:    110.00000000000000
  334. )
  335.  
  336. (RectD.42
  337.     Left:    113.00000000000000
  338.     Top:    213.00000000000000
  339.     Right:    209.00000000000000
  340.     Bottom:    185.00000000000000
  341. )
  342.  
  343. (RectD.43
  344.     Left:    272.00000000000000
  345.     Top:    70.00000000000000
  346.     Right:    303.00000000000000
  347.     Bottom:    42.00000000000000
  348. )
  349.  
  350. (RectD.44
  351.     Left:    273.00000000000000
  352.     Top:    142.00000000000000
  353.     Right:    317.00000000000000
  354.     Bottom:    114.00000000000000
  355. )
  356.  
  357. (RectD.45
  358.     Left:    240.00000000000000
  359.     Top:    102.00000000000000
  360.     Right:    268.00000000000000
  361.     Bottom:    74.00000000000000
  362. )
  363.  
  364. (RectD.46
  365.     Left:    273.00000000000000
  366.     Top:    110.00000000000000
  367.     Right:    310.00000000000000
  368.     Bottom:    82.00000000000000
  369. )
  370.  
  371. (RectD.47
  372.     Left:    240.00000000000000
  373.     Top:    66.00000000000000
  374.     Right:    268.00000000000000
  375.     Bottom:    38.00000000000000
  376. )
  377.  
  378. (RectD.48
  379.     Left:    10.00000000000000
  380.     Top:    190.00000000000000
  381.     Right:    235.00000000000000
  382.     Bottom:    162.00000000000000
  383. )
  384.  
  385. (Nil.49
  386. )
  387.  
  388. (Nil.50
  389. )
  390.  
  391. (AVDLog.51
  392.     Name:    "Circle"
  393.     X:    18
  394.     Y:    64
  395.     W:    309
  396.     H:    129
  397.     HelpTopic:    "Circle_Edit"
  398.     ConstrainedControlNames:    52
  399.     ConstrainedControlNames:    53
  400.     ConstrainedControlNames:    54
  401.     ConstrainedControlNames:    55
  402.     Constraints:    56
  403.     Constraints:    57
  404.     Constraints:    58
  405.     Constraints:    59
  406.     Server:    60
  407.     ControlPanel:    61
  408.     ObjectTag:    49
  409.     Title:    "Circle"
  410.     EscapeEnabled:    1
  411.     AlwaysOnTop:    1
  412.     HasTitleBar:    1
  413.     Closeable:    1
  414.     Close:    "ShapeWin.Circle Close"
  415.     Open:    "ShapeWin.Circle Open"
  416.     DefaultButton:    86
  417. )
  418.  
  419. (AVStr.52
  420.     S:    "OK"
  421. )
  422.  
  423. (AVStr.53
  424.     S:    "aLabelButton9"
  425. )
  426.  
  427. (AVStr.54
  428.     S:    "Apply"
  429. )
  430.  
  431. (AVStr.55
  432.     S:    "CenterTool"
  433. )
  434.  
  435. (Numb.56
  436.     N:    85.00000000000000
  437. )
  438.  
  439. (Numb.57
  440.     N:    85.00000000000000
  441. )
  442.  
  443. (Numb.58
  444.     N:    85.00000000000000
  445. )
  446.  
  447. (Numb.59
  448.     N:    85.00000000000000
  449. )
  450.  
  451. (Nil.60
  452. )
  453.  
  454. (CPanel.61
  455.     Child:    62
  456.     Child:    74
  457.     Child:    76
  458.     Child:    77
  459.     Child:    78
  460.     Child:    79
  461.     ResBox:    80
  462.     ResBox:    81
  463.     ResBox:    82
  464.     ResBox:    83
  465.     ResBox:    84
  466.     ResBox:    85
  467.     Listening:    1
  468. )
  469.  
  470. (CPanel.62
  471.     InternalName:    "aControlPanel24"
  472.     Child:    63
  473.     Child:    65
  474.     Child:    67
  475.     Child:    69
  476.     Constraints:    0x55
  477.     ResBox:    70
  478.     ResBox:    71
  479.     ResBox:    72
  480.     ResBox:    73
  481.     VisibleBorder:    1
  482.     Listening:    1
  483. )
  484.  
  485. (Tool.63
  486.     InternalName:    "CenterTool"
  487.     Help:    "Use to enter the center of the circle by pointing in the View // Use to enter the center of the circle by pointing in the View"
  488.     Icon:    64
  489.     Cursor:    "Cursors.Default"
  490.     Apply:    "ShapeWin.GetPoint from View"
  491. )
  492.  
  493. (AVIcon.64
  494.     Name:    "SelectCircle"
  495.     Res:    "Icons.SelectCircle"
  496.  
  497. )
  498.  
  499. (TextLine.65
  500.     InternalName:    "x"
  501.     Text:    "0.522242"
  502.     Label:    "Center X"
  503.     Constraints:    0x55
  504.     Listening:    1
  505.     TextType:    66
  506.     Size:    10
  507.     NextControl:    60
  508. )
  509.  
  510. (AVEnum.66
  511.     Name:    "TEXTLINE_TYPE_REAL"
  512. )
  513.  
  514. (TextLine.67
  515.     InternalName:    "y"
  516.     Text:    "0.688047"
  517.     Label:    "Center Y"
  518.     Constraints:    0x55
  519.     Listening:    1
  520.     TextType:    68
  521.     Size:    10
  522.     NextControl:    60
  523. )
  524.  
  525. (AVEnum.68
  526.     Name:    "TEXTLINE_TYPE_REAL"
  527. )
  528.  
  529. (TextLabel.69
  530.     InternalName:    "aTextLabel23"
  531.     Constraints:    0x55
  532.     Label:    "Select the\ncenter point"
  533.     Listening:    1
  534. )
  535.  
  536. (RectD.70
  537.     Left:    195.00000000000000
  538.     Top:    36.00000000000000
  539.     Right:    219.00000000000000
  540.     Bottom:    12.00000000000000
  541. )
  542.  
  543. (RectD.71
  544.     Left:    4.00000000000000
  545.     Top:    28.00000000000000
  546.     Right:    184.00000000000000
  547.     Bottom:    8.00000000000000
  548. )
  549.  
  550. (RectD.72
  551.     Left:    4.00000000000000
  552.     Top:    54.00000000000000
  553.     Right:    184.00000000000000
  554.     Bottom:    34.00000000000000
  555. )
  556.  
  557. (RectD.73
  558.     Left:    225.00000000000000
  559.     Top:    45.00000000000000
  560.     Right:    298.00000000000000
  561.     Bottom:    10.00000000000000
  562. )
  563.  
  564. (TextLine.74
  565.     InternalName:    "radius"
  566.     Text:    "0.112363"
  567.     Label:    "Radius"
  568.     Constraints:    0x55
  569.     Listening:    1
  570.     TextType:    75
  571.     Size:    10
  572.     NextControl:    60
  573. )
  574.  
  575. (AVEnum.75
  576.     Name:    "TEXTLINE_TYPE_REAL"
  577. )
  578.  
  579. (LButn.76
  580.     InternalName:    "OK"
  581.     Label:    "OK"
  582.     Click:    "ShapeWin.Circle OK"
  583. )
  584.  
  585. (LButn.77
  586.     InternalName:    "aLabelButton9"
  587.     Label:    "Cancel"
  588.     Click:    "ShapeWin.Circle Cancel"
  589. )
  590.  
  591. (LButn.78
  592.     InternalName:    "Apply"
  593.     Label:    "Apply"
  594.     Click:    "ShapeWin.Circle Apply"
  595. )
  596.  
  597. (TextLabel.79
  598.     InternalName:    "units"
  599.     Constraints:    0x55
  600.     Listening:    1
  601. )
  602.  
  603. (RectD.80
  604.     Left:    8.00000000000000
  605.     Top:    67.00000000000000
  606.     Right:    308.00000000000000
  607.     Bottom:    4.00000000000000
  608. )
  609.  
  610. (RectD.81
  611.     Left:    20.00000000000000
  612.     Top:    92.00000000000000
  613.     Right:    192.00000000000000
  614.     Bottom:    72.00000000000000
  615. )
  616.  
  617. (RectD.82
  618.     Left:    8.00000000000000
  619.     Top:    125.00000000000000
  620.     Right:    90.00000000000000
  621.     Bottom:    101.00000000000000
  622. )
  623.  
  624. (RectD.83
  625.     Left:    207.00000000000000
  626.     Top:    125.00000000000000
  627.     Right:    289.00000000000000
  628.     Bottom:    101.00000000000000
  629. )
  630.  
  631. (RectD.84
  632.     Left:    107.00000000000000
  633.     Top:    125.00000000000000
  634.     Right:    189.00000000000000
  635.     Bottom:    101.00000000000000
  636. )
  637.  
  638. (RectD.85
  639.     Left:    204.00000000000000
  640.     Top:    100.00000000000000
  641.     Right:    300.00000000000000
  642.     Bottom:    72.00000000000000
  643. )
  644.  
  645. (Nil.86
  646. )
  647.  
  648. (AVDLog.87
  649.     Name:    "XY Point"
  650.     X:    16
  651.     Y:    57
  652.     W:    284
  653.     H:    128
  654.     HelpTopic:    "Vertex_Point_Edit"
  655.     ConstrainedControlNames:    88
  656.     ConstrainedControlNames:    89
  657.     ConstrainedControlNames:    90
  658.     Constraints:    91
  659.     Constraints:    92
  660.     Constraints:    93
  661.     Server:    94
  662.     ControlPanel:    95
  663.     ObjectTag:    49
  664.     Title:    "Vertex Point Edit"
  665.     EscapeEnabled:    1
  666.     AlwaysOnTop:    1
  667.     HasTitleBar:    1
  668.     Closeable:    1
  669.     DefaultButton:    108
  670. )
  671.  
  672. (AVStr.88
  673.     S:    "OK"
  674. )
  675.  
  676. (AVStr.89
  677.     S:    "cancel"
  678. )
  679.  
  680. (AVStr.90
  681.     S:    "LocatePT"
  682. )
  683.  
  684. (Numb.91
  685.     N:    85.00000000000000
  686. )
  687.  
  688. (Numb.92
  689.     N:    85.00000000000000
  690. )
  691.  
  692. (Numb.93
  693.     N:    85.00000000000000
  694. )
  695.  
  696. (Nil.94
  697. )
  698.  
  699. (CPanel.95
  700.     Child:    96
  701.     Child:    108
  702.     Child:    109
  703.     Child:    110
  704.     Child:    112
  705.     ResBox:    114
  706.     ResBox:    115
  707.     ResBox:    116
  708.     ResBox:    117
  709.     ResBox:    118
  710.     Listening:    1
  711. )
  712.  
  713. (CPanel.96
  714.     InternalName:    "aControlPanel20"
  715.     Child:    97
  716.     Child:    98
  717.     Child:    100
  718.     Child:    102
  719.     Constraints:    0x55
  720.     ResBox:    104
  721.     ResBox:    105
  722.     ResBox:    106
  723.     ResBox:    107
  724.     VisibleBorder:    1
  725.     Listening:    1
  726. )
  727.  
  728. (TextLabel.97
  729.     InternalName:    "aTextLabel16"
  730.     Constraints:    0x55
  731.     Label:    "Select the\npoint location"
  732.     Listening:    1
  733. )
  734.  
  735. (TextLine.98
  736.     InternalName:    "y"
  737.     Help:    "Enter in the new location for the point here // Enter in the new location for the point here"
  738.     Text:    "00000000"
  739.     Label:    "y"
  740.     Constraints:    0x55
  741.     Listening:    1
  742.     TextType:    99
  743.     NextControl:    94
  744. )
  745.  
  746. (AVEnum.99
  747.     Name:    "TEXTLINE_TYPE_REAL"
  748. )
  749.  
  750. (TextLine.100
  751.     InternalName:    "x"
  752.     Help:    "Enter in the new location for the point here // Enter in the new location for the point here"
  753.     Text:    "00000000"
  754.     Label:    "x"
  755.     Constraints:    0x55
  756.     Listening:    1
  757.     TextType:    101
  758.     NextControl:    94
  759. )
  760.  
  761. (AVEnum.101
  762.     Name:    "TEXTLINE_TYPE_REAL"
  763. )
  764.  
  765. (Tool.102
  766.     InternalName:    "LocatePT"
  767.     Help:    "Locate a new point location on the view // Locate a new point location on the view"
  768.     Icon:    103
  769.     Cursor:    "Cursors.CrossHair"
  770.     Apply:    "ShapeWin.GetPoint from View"
  771. )
  772.  
  773. (AVIcon.103
  774.     Name:    "SelectEdit"
  775.     Res:    "Icons.SelectEdit"
  776.  
  777. )
  778.  
  779. (RectD.104
  780.     Left:    190.00000000000000
  781.     Top:    52.00000000000000
  782.     Right:    286.00000000000000
  783.     Bottom:    15.00000000000000
  784. )
  785.  
  786. (RectD.105
  787.     Left:    4.00000000000000
  788.     Top:    56.00000000000000
  789.     Right:    148.00000000000000
  790.     Bottom:    36.00000000000000
  791. )
  792.  
  793. (RectD.106
  794.     Left:    4.00000000000000
  795.     Top:    30.00000000000000
  796.     Right:    148.00000000000000
  797.     Bottom:    10.00000000000000
  798. )
  799.  
  800. (RectD.107
  801.     Left:    156.00000000000000
  802.     Top:    37.00000000000000
  803.     Right:    180.00000000000000
  804.     Bottom:    13.00000000000000
  805. )
  806.  
  807. (LButn.108
  808.     InternalName:    "OK"
  809.     Help:    "Press to accept the new point location // Press to accept the new point location"
  810.     Label:    "OK"
  811.     Click:    "ShapeWin.Vertex Edit OK"
  812. )
  813.  
  814. (LButn.109
  815.     InternalName:    "cancel"
  816.     Help:    "Press to cancel any changes // Press to cancel any changes"
  817.     Label:    "Cancel"
  818.     Click:    "ShapeWin.Vertex Edit Cancel"
  819. )
  820.  
  821. (TextLine.110
  822.     InternalName:    "z"
  823.     Help:    "Enter in the new z for the point here // Enter in the new z for the point here"
  824.     Text:    "00000"
  825.     Label:    "Elevation (z)"
  826.     Constraints:    0x55
  827.     Listening:    1
  828.     TextType:    111
  829.     Size:    5
  830.     NextControl:    94
  831. )
  832.  
  833. (AVEnum.111
  834.     Name:    "TEXTLINE_TYPE_REAL"
  835. )
  836.  
  837. (TextLine.112
  838.     InternalName:    "m"
  839.     Help:    "Enter in the new m for the point here // Enter in the new m for the point here"
  840.     Text:    "00000"
  841.     Label:    "Measure (m)"
  842.     Constraints:    0x55
  843.     Listening:    1
  844.     TextType:    113
  845.     Size:    5
  846.     NextControl:    94
  847. )
  848.  
  849. (AVEnum.113
  850.     Name:    "TEXTLINE_TYPE_REAL"
  851. )
  852.  
  853. (RectD.114
  854.     Left:    6.00000000000000
  855.     Top:    65.00000000000000
  856.     Right:    282.00000000000000
  857.     Bottom:    4.00000000000000
  858. )
  859.  
  860. (RectD.115
  861.     Left:    105.00000000000000
  862.     Top:    124.00000000000000
  863.     Right:    187.00000000000000
  864.     Bottom:    100.00000000000000
  865. )
  866.  
  867. (RectD.116
  868.     Left:    195.00000000000000
  869.     Top:    124.00000000000000
  870.     Right:    277.00000000000000
  871.     Bottom:    100.00000000000000
  872. )
  873.  
  874. (RectD.117
  875.     Left:    7.00000000000000
  876.     Top:    92.00000000000000
  877.     Right:    149.00000000000000
  878.     Bottom:    72.00000000000000
  879. )
  880.  
  881. (RectD.118
  882.     Left:    154.00000000000000
  883.     Top:    92.00000000000000
  884.     Right:    282.00000000000000
  885.     Bottom:    72.00000000000000
  886. )
  887.  
  888. (Script.119
  889.     Name:    "ShapeWin.Activate"
  890.     SourceCode:    "thedialog=self\nav.clearstatus\nif (thedialog.isOpen.Not) then\n  return(nil)\nend\n\n\nif (av.finddialog(\"XY Point\").isOpen) then\n\n  av.finddialog(\"XY Point\").activate\n  return(nil)\nend\ntheview=av.getactivedoc\n\nif (theview.is(view).not) then\n  for each acontrol in theDialog.getcontrolpanel.getcontrols\n    if (acontrol.is(ControlPanel)) then\n      for each thectl in acontrol.getcontrols\n         thectl.setenabled(false)\n      end\n    else\n      acontrol.setenabled(false)\n    end\n   end\n   thedialog.findbyname(\"Can
  891. cel\").setenabled(TRUE)\n  \n  \n  'self.close\n  return(nil)\nelse\n  for each acontrol in theDialog.getcontrolpanel.getcontrols\n    if (acontrol.is(ControlPanel)) then\n      for each thectl in acontrol.getcontrols\n        if (thectl.getname<>\"UpdateShape\") then\n          thectl.setenabled(TRUE)\n        end\n      end\n    else\n      if (acontrol.getname<>\"UpdateShape\") then\n        acontrol.setenabled(TRUE)\n      end\n    end\n'   thedialog.findbyname(\"Cancel\").setenabled(TRUE)\n  end\nend\n\n\nif (self.getobjecttag.is(l
  892. ist)) then\n\n  if (theview.GetEditableTheme = NIL) then\n    self.close\n    return(nil)\n  end\nend\n\n\ntheTheme = theView.GetEditableTheme\nif (theTheme=NIL) then\n  TheGraphics=theView.getgraphics\n  theSelGraphics=theGraphics.getselected\n  \n  if (theSelGraphics.count <> 1) then\n    self.close\n    return(nil)\n  end\n\n  theSelGraphic=theSelGraphics.get(0)  \n  ' -------------------------\n  ' Trap for Graphic Text\n  ' -------------------------\n  if (theSelGraphic.is(graphicText)) then\n    self.close\n    return(nil)\n  
  893. end\n\n  theShape= theSelGraphic.getshape\n  theshapesrc=theshape\nelse\n  theFtab=thetheme.getftab\n  if (theFtab.getselection.count=0) then\n    self.close \n  end\n  thesel=theftab.getselection\n  theshpfld=theftab.findfield(\"shape\")\n  for each arec in thesel\n    theshapesrc=theftab.returnvalue(theshpfld,arec)\n    break\n  end\nend\n\ntheobjtag=thedialog.findbyname(\"apply\").getobjecttag\n  \nif (theshapesrc<>theobjtag) then\n   msgbox.warning(\"The selected shape has been changed, the dialog will now re-initalize\",\"Warnin
  894. g\")\n\n    self.close\n    self.open\n    \nend\n'msgbox.info(\"\",\"5\")\n"
  895. )
  896.  
  897. (Script.120
  898.     Name:    "ShapeWin.Add PT"
  899.     SourceCode:    "thedialog=self.getdialog\nif (av.getactivedoc.is(view).not) then\n  return(nil)\nend\n\n\nshapelist=thedialog.findbyname(\"ShapeList\").getlist\nshapetype=thedialog.findbyname(\"ShapeType\").gettext\nthepoint=thedialog.findbyname(\"ShapeList\").getcurrentvalue\n\naloc=shapelist.findbyvalue(thepoint)\n\nif (aloc=-1) then ' why this would happen I don't know?\n  newpoint=0@0\n  shapelist.add(newpoint)\n\nelse\n  newpoint=thepoint.clone\n  shapelist.add(newpoint)\n  shapelist.shuffle(newpoint,aloc+1)\n\nend\n\nthedialog.findbyname(\"ShapeL
  900. ist\").definefromlist(shapelist)\n\n  thepts=av.getactivedoc.getgraphics.findallbyname(\"VertexPoints\")\n  if (thepts <> NIL) then\n    for each apt in thepts.clone\n      av.getactivedoc.getgraphics.removeGraphic(apt)\n    end\n  end \n\nthedialog.findbyname(\"ShapeList\").gorow(aloc+1)\nthedialog.findbyname(\"ShapeList\").selectcurrent(FALSE)\nthedialog.findbyname(\"ShapeList\").showcurrent\nthedialog.findbyname(\"ShapeList\").select\nthedialog.findbyname(\"Apply\").click\nthedialog.findbyname(\"ShapeList\").apply\n\n"
  901. )
  902.  
  903. (Script.121
  904.     Name:    "ShapeWin.Apply"
  905.     SourceCode:    "thedialog=self.getdialog\nTheApply=thedialog.findbyname(\"Apply\")\nav.run(\"ShapeWin.OKandApply\",{theApply,\"TempGraphic\"})\n\n"
  906. )
  907.  
  908. (Script.122
  909.     Name:    "ShapeWin.ApplyPoint"
  910.     SourceCode:    "\ntheView=av.getactivedoc\nif (theview.is(View).not) then\n  return(nil)\nend\n\nthedialog=SELF.getdialog\nthexydialog=av.finddialog(\"XY Point\")\nxtext=thexydialog.findbyname(\"x\")\nytext=thexydialog.findbyname(\"y\")\nztext=thexydialog.findbyname(\"z\")\nmtext=thexydialog.findbyname(\"m\")\n\nthepoint=thedialog.findbyname(\"ShapeList\").getcurrentvalue\nif (thepoint.is(Point).not) then\n  return(nil)\nend\nx=thepoint.getx\ny=thepoint.gety\nm=NIL\nz=NIL\n\nif (thepoint.isMeasured) then\n  m=thepoint.getm\nend\n\nif (thepoint.HasZ) then\n  z=t
  911. hepoint.getz\nend\n\nif (x.asstring.contains(\"e\")) then\n  x.setformat(\"d.dddddd\")\nend\n\nif (y.asstring.contains(\"e\")) then\n  y.setformat(\"d.dddddd\")\nend\n\nxtext.setsize(x.asstring.count +5)\nytext.setsize(y.asstring.count+5)\nxtext.settext(x.asstring)\nytext.settext(y.asstring)\n\nif (z<>NIL) then\n  ztext.setvisible(TRUE)\n  ztext.setsize(z.asstring.count+5)\n  ztext.settext(z.asstring)\nelse\n  ztext.settext(\"0\")\n  ztext.setsize(4)\n  ztext.setvisible(true)\n  ztext.setvisible(FALSE)\nend\n\n\nif (m<>NIL) then\n  \n  mtext.setv
  912. isible(TRUE)\n  mtext.setsize(m.asstring.count+5)\n  mtext.settext(m.asstring)\nelse\n  mtext.settext(\"0\")\n  mtext.setsize(4)\n  mtext.setvisible(true)\n  mtext.setvisible(FALSE)\n  \nend\n\n\n\n\nagraphic=graphicshape.make(x@y)\nthepts=av.getactivedoc.getgraphics.findallbyname(\"VertexPoints\")\nif (thepts <> NIL) then\nfor each apt in thepts.clone\n  av.getactivedoc.getgraphics.removeGraphic(apt)\nend\nend\n'agraphic.getsymbol.setcolor(color.getred)\nagraphic.setname(\"VertexPoints\")\nav.getactivedoc.getgraphics.add(agraphic)\n\n\nt
  913. hexydialog.open\nthexydialog.findbyname(\"LocatePT\").select\n\n"
  914. )
  915.  
  916. (Script.123
  917.     Name:    "ShapeWin.Cancel"
  918.     SourceCode:    "thedialog=self.getdialog\nupdateshape=thedialog.findbyname(\"updateshape\")\n\ntheView=av.getactivedoc\nif (theview.is(View)) then\n  thepts=av.getactivedoc.getgraphics.findallbyname(\"VertexPoints\")\n  if (thepts <> NIL) then\n    for each apt in thepts.clone\n      av.getactivedoc.getgraphics.removeGraphic(apt)\n    end\n  end \n'===============================================\n\nif (thedialog.getobjecttag.is(Graphic)) then \n  badg=theview.getgraphics.findallbyname(\"TempGraphic\")\n  if (badg <> NIL) then\n    for each abag
  919. graphic in badg.clone\n      theview.getgraphics.removeGraphic(abaggraphic)\n    end\n  end \n  agoodgraphic=self.getdialog.getobjecttag\n  if (agoodgraphic.is(graphic)) then\n    agoodgraphic.setname(\"\")\n\n    agoodgraphic.setselected(TRUE)\n    theview.getgraphics.add(agoodgraphic)\n  end\n\nelseif ((thedialog.getobjecttag.is(list)) and (thedialog.getobjecttag.get(0).is(FTAB)) ) then\n  theTheme = theView.GetEditableTheme\n  if (thetheme=NIL) then\n    av.finddialog(\"ShapeWin\").close\n    return(nil)\n  end\n  \n  theftab=
  920. thedialog.getobjecttag.get(0)\n  \n  if (thetheme.getftab<>theftab) then\n    av.finddialog(\"ShapeWin\").close\n    return(nil)\n  end\n  \n  shpfld=theftab.findfield(\"shape\")\n  therec=thedialog.getobjecttag.get(1)\n  theoldshp=thedialog.getobjecttag.get(2)\n  \n  if (updateshape.isselected) then\n    areafld=theftab.findfield(\"area\")\n    lengthfld=theftab.findfield(\"length\")\n    perimfld=theftab.findfield(\"perimeter\")\n    \n    if (shpfld.gettype=#FIELD_SHAPEPOLY) then\n      theftab.BeginTransaction\n        if (areafld
  921. <>NIL) then\n          theftab.setvalue(areafld,therec,theoldshp.returnarea)\n        end\n        if (perimfld<>NIL) then\n          theftab.setvalue(perimfld,therec,theoldshp.returnlength)\n        end\n      theftab.EndTransaction  \n    elseif (shpfld.gettype=#FIELD_SHAPELINE) then\n      theftab.BeginTransaction\n      if (lengthfld<>NIL) then\n        theftab.setvalue(lengthfld,therec,theoldshp.returnlength)\n      end\n      theftab.EndTransaction  \n    end\n  end\n  theftab.BeginTransaction\n    theftab.setvalue(s
  922. hpfld,therec,theoldshp)\n  theftab.EndTransaction\n  theview.getdisplay.invalidaterect(theoldshp.returnextent)\n  \nend\n\n\n\n'==============================================\nend\n\nav.finddialog(\"ShapeWin\").close\n\n"
  923. )
  924.  
  925. (Script.124
  926.     Name:    "ShapeWin.Circle Apply"
  927.     SourceCode:    "thedialog=self.getdialog\ntheview=av.getactivedoc\nif (Theview.is(View).not) then\n  return(nil)\nend\n\ncenx=thedialog.findbyname(\"x\").gettext\nceny=thedialog.findbyname(\"y\").gettext\ntheRadius=thedialog.findbyname(\"radius\").gettext\n\n\nfinalshape=circle.make(cenx.asnumber@ceny.asnumber,theRadius.asnumber)\n\n\n badg=theview.getgraphics.findallbyname(\"TempGraphic\")\n  if (badg <> NIL) then\n    for each abaggraphic in badg.clone\n      theview.getgraphics.removeGraphic(abaggraphic)\n    end\n  end \nagshape=graphicshape.make
  928. (finalshape)\nagshape.setname(\"TempGraphic\")\nagshape.setselected(true)\n\nagoodgraphic=self.getdialog.getobjecttag\nasym=agoodgraphic.getsymbol.clone\nagshape.setsymbol(asym)\ntheview.getgraphics.add(agshape)\n"
  929. )
  930.  
  931. (Script.125
  932.     Name:    "ShapeWin.Circle Cancel"
  933.     SourceCode:    "thedialog=self.getdialog\n\ntheView=av.getactivedoc\nif (theview.is(View)) then\n  thepts=av.getactivedoc.getgraphics.findallbyname(\"VertexPoints\")\n  if (thepts <> NIL) then\n    for each apt in thepts.clone\n      av.getactivedoc.getgraphics.removeGraphic(apt)\n    end\n  end \n\n  badg=theview.getgraphics.findallbyname(\"TempGraphic\")\n  if (badg <> NIL) then\n    for each abaggraphic in badg.clone\n      theview.getgraphics.removeGraphic(abaggraphic)\n    end\n  end \n  agoodgraphic=self.getdialog.getobjecttag\n  if (agoo
  934. dgraphic.is(graphic)) then\n    agoodgraphic.setname(\"\")\n    theview.getgraphics.add(agoodgraphic.clone)\n  end\nend\nself.getdialog.close\n\n"
  935. )
  936.  
  937. (Script.126
  938.     Name:    "ShapeWin.Circle Close"
  939.     SourceCode:    "theView=av.getactivedoc\n\nif (theview.is(View)) then\n  thepts=av.getactivedoc.getgraphics.findallbyname(\"VertexPoints\")\n  if (thepts <> NIL) then\n    for each apt in thepts.clone\n      av.getactivedoc.getgraphics.removeGraphic(apt)\n    end\n  end \n  av.getactiveGUI.gettoolbar.getcontrols.get(0).select\n\nend\n"
  940. )
  941.  
  942. (Script.127
  943.     Name:    "ShapeWin.Circle OK"
  944.     SourceCode:    "thedialog=self.getdialog\ntheview=av.getactivedoc\nif (Theview.is(View).not) then\n  return(nil)\nend\n\ncenx=thedialog.findbyname(\"x\").gettext\nceny=thedialog.findbyname(\"y\").gettext\ntheRadius=thedialog.findbyname(\"radius\").gettext\n\n\nfinalshape=circle.make(cenx.asnumber@ceny.asnumber,theRadius.asnumber)\n\n\n badg=theview.getgraphics.findallbyname(\"TempGraphic\")\n  if (badg <> NIL) then\n    for each abaggraphic in badg.clone\n      theview.getgraphics.removeGraphic(abaggraphic)\n    end\n  end \nagshape=graphicshape.make
  945. (finalshape)\n'agshape.setname(\"TempGraphic\")\nagshape.setselected(true)\n\nagoodgraphic=self.getdialog.getobjecttag\nasym=agoodgraphic.getsymbol.clone\nagshape.setsymbol(asym)\ntheview.getgraphics.add(agshape)\nself.getdialog.setobjecttag(\"\")\nself.getdialog.close\n"
  946. )
  947.  
  948. (Script.128
  949.     Name:    "ShapeWin.Circle Open"
  950.     SourceCode:    "thedialog=SELF\n\n\ntheView=av.getactivedoc\nif (theview.is(View).not) then\n  return(nil)\nend\n\ntheunits=theview.getdisplay.getdistanceunits.asstring\nunitlist=theunits.astokens(\"_\")\ntheunit=unitlist.get(2)\nif (theunit=\"Unknown\") then\n  theunit=\"\"\nend\n\nthedialog.findbyname(\"Units\").setlabel(theunit.proper)\n\n\nTheGraphics=theView.getgraphics\ntheSelGraphics=theGraphics.getselected\n\nif (theSelGraphics.count <> 1) then\n  exit\nend\n\ntheSelGraphic=theSelGraphics.get(0)\ntheShape= theSelGraphic.getshape\n\nxtxt=thedialog.fin
  951. dbyname(\"x\")\nytxt=thedialog.findbyname(\"y\")\nradtxt=thedialog.findbyname(\"Radius\")\n\nthecen=theshape.returncenter\ntherad=theshape.getradius\n\nxtxt.settext(thecen.getx.asstring)\nytxt.settext(thecen.gety.asstring)\nradtxt.settext(therad.asstring)\n\nx=thecen.getx\ny=thecen.gety\n\n\nagraphic=graphicshape.make(x@y)\nthepts=av.getactivedoc.getgraphics.findallbyname(\"VertexPoints\")\nif (thepts <> NIL) then\n  for each apt in thepts.clone\n    av.getactivedoc.getgraphics.removeGraphic(apt)\n  end\nend\nagraphic.getsymbol.setcolor
  952. (color.getred)\nagraphic.setname(\"VertexPoints\")\nav.getactivedoc.getgraphics.add(agraphic)\n\nthedialog.findbyname(\"CenterTool\").select\n\ntheselgraphic.setname(\"TempGraphic\")\nTheDialog.setobjecttag(theselgraphic.clone)\n\n\n"
  953. )
  954.  
  955. (Script.129
  956.     Name:    "ShapeWin.Close"
  957.     SourceCode:    "theView=av.getactivedoc\n\nif (theview.is(View)) then\n  thepts=av.getactivedoc.getgraphics.findallbyname(\"VertexPoints\")\n  if (thepts <> NIL) then\n    for each apt in thepts.clone\n      av.getactivedoc.getgraphics.removeGraphic(apt)\n    end\n  end \n'  av.getactiveGUI.gettoolbar.getcontrols.get(0).select\n\nend\n"
  958. )
  959.  
  960. (Script.130
  961.     Name:    "ShapeWin.DeletePT"
  962.     SourceCode:    "thedialog=self.getdialog\nif (av.getactivedoc.is(view).not) then\n  return(nil)\nend\n\n\nshapelist=thedialog.findbyname(\"ShapeList\").getlist\nshapetype=thedialog.findbyname(\"ShapeType\").gettext\nthepoints=thedialog.findbyname(\"ShapeList\").getselection\nif (thepoints.count=0) then\n return(nil)\nend\nthedialog.findbyname(\"ShapeList\").GoFirstSelected \noldrec=thedialog.findbyname(\"ShapeList\").getcurrentrow\n\nif ((shapetype=\"Polygon\") or (shapetype=\"Multi-Polygon\")) then\n amin=3\nelseif ((shapetype=\"Line\") or (shapetype=\"Po
  963. lyLine\") or(shapetype=\"Multi-PolyLine\")) then\n amin=2\nelseif ((shapetype=\"Point\") or (shapetype=\"Multi-Point\"))  then\n amin=1\nend\n\nasepstring=\"------Multi-Part Separator -----\"\nsep=shapelist.findbyvalue(asepstring)\navalue=shapelist.count - thepoints.count\n\nif (sep=-1) then\n if ((shapelist.count - thepoints.count) < amin) then\n    amin=amin.setformat(\"d\")\n   msgbox.error(\"You cannot delete this point, a minimum of \"+amin.asstring+\" points are needed for \"+shapetype+\" shapes.\",\"Error\")\n   return(nil)\n end\nels
  964. e ' Multipoint\nnewshape={}\n  for each aitem in shapelist\n    if (aitem.is(point)) then\n      if (thepoints.find(aitem) = -1) then\n        newshape.add(aitem)\n      end\n    else\n     if (newshape.count < amin) then\n       amin=amin.setformat(\"d\")\n       msgbox.error(\"You cannot delete this point, a minimum of \"+amin.asstring+\" points are needed for \"+shapetype+\" shapes.\",\"Error\")\n       return(nil)\n     else\n       newshape={}\n     end\n    end\n  end\nend\n\n  thepts=av.getactivedoc.getgraphics.findallbyname(\"Ve
  965. rtexPoints\")\n  if (thepts <> NIL) then\n    for each apt in thepts.clone\n      av.getactivedoc.getgraphics.removeGraphic(apt)\n    end\n  end \n\n' From here we assume that all the points can be deleted\nfor each athing in thepoints.clone\n  shapelist.removeobj(athing)\nend\n\n'shapelist=shapelist - thepoints\nthedialog.findbyname(\"ShapeList\").definefromlist(shapelist)\nthedialog.findbyname(\"ShapeList\").gorow(oldrec-1)\nthedialog.findbyname(\"ShapeList\").selectcurrent(FALSE)\nthedialog.findbyname(\"ShapeList\").showcurrent\n
  966. thedialog.findbyname(\"ShapeList\").select\nthedialog.findbyname(\"Apply\").click\n\n"
  967. )
  968.  
  969. (Script.131
  970.     Name:    "ShapeWin.GetPoint from View"
  971.     SourceCode:    "theView=av.getactivedoc\nif (theview.is(View).not) then\n  return(nil)\nend\n\nthedialog=SELF.getdialog\nthepoint=theview.getdisplay.returnuserpoint\nif (thepoint=NIL) then\n return(niL)\nend\n\nx=thepoint.getx\ny=thepoint.gety\n\n\nthedialog.findbyname(\"x\").settext(x.asstring)\nthedialog.findbyname(\"y\").settext(y.asstring)\n\nagraphic=graphicshape.make(x@y)\nthepts=av.getactivedoc.getgraphics.findallbyname(\"VertexPoints\")\nif (thepts <> NIL) then\nfor each apt in thepts.clone\n  av.getactivedoc.getgraphics.removeGraphic(apt)\nen
  972. d\nend\n'agraphic.getsymbol.setcolor(color.getred)\nagraphic.setname(\"VertexPoints\")\nav.getactivedoc.getgraphics.add(agraphic)\n"
  973. )
  974.  
  975. (Script.132
  976.     Name:    "ShapeWin.OK"
  977.     SourceCode:    "thedialog=self.getdialog\nTheApply=thedialog.findbyname(\"Apply\")\nav.run(\"ShapeWin.OKandApply\",{theApply,\"\"})\n\nthedialog.setobjecttag(\"\")\ntheApply.setobjecttag(\"\")\n\nthedialog.close\n\n"
  978. )
  979.  
  980. (Script.133
  981.     Name:    "ShapeWin.OKandApply"
  982.     SourceCode:    "'SELF = {the apply control,\"TempGraphic\"}\ngstring=SELF.get(1)\nthedialog=self.get(0).getdialog\ntheapply=self.get(0)\ntheview=av.getactivedoc\n\nif (theView.is(View).not) then\n  return(nil)\nend\n\nshapelist=thedialog.findbyname(\"Shapelist\").getlist\nshptype=thedialog.findbyname(\"ShapeType\").gettext\nupdateshape=thedialog.findbyname(\"UpdateShape\")\n'msgbox.info(shptype,\"shptype\")\n\nif ((shptype=\"Polygon\") or (shptype=\"Multi-Polygon\")) then\n  asepstring=\"------Multi-Part Separator -----\"\n  sep=shapelist.findbyvalue(asep
  983. string)\n  if (sep=-1) then\n    ' simple polygon\n\n      if (shapelist.get(0).is(PointM)) then\n        if (shapelist.get(0).hasZ) then\n          finalshape=polygonZ.make({shapelist})\n        else\n          finalshape=polygonM.make({shapelist})\n        end\n      else\n        finalshape=polygon.make({shapelist})\n      end\n    \n  else\n    'complex polygon\n    listofpolys={}\n    newshape={}\n    for each aitem in shapelist\n      if (aitem.is(point)) then\n       newshape.add(aitem)\n      else\n        listofpolys.ad
  984. d(newshape)\n        newshape={}\n      end\n    end\n      if (shapelist.get(0).is(PointM)) then\n        if (shapelist.get(0).hasZ) then\n          finalshape=polygonZ.make(listofpolys)\n        else\n          finalshape=polygonM.make(listofpolys)\n        end\n      else\n        finalshape=polygon.make(listofpolys)       \n      end\n\n  end\n  \n  \n\nelseif ((shptype=\"Line\") or (shptype.contains(\"PolyLine\"))) then\n  if (shapelist.count=2) then\n      if (shapelist.get(0).is(PointM)) then\n        if (shapelist.get(0).ha
  985. sZ) then\n          finalshape=polylinez.make({shapelist.get(0),shapelist.get(1)})\n        else\n          finalshape=polylinem.make({shapelist.get(0),shapelist.get(1)})\n        end\n      else\n        finalshape=polyline.make({{shapelist.get(0),shapelist.get(1)}})\n      end\n  else\n    '---------------------\n     asepstring=\"------Multi-Part Separator -----\"\n    sep=shapelist.findbyvalue(asepstring)\n    if (sep=-1) then\n      ' simple polyline\n'      msgbox.info(\"simple\",\"\")\n\n'      finalshape=polyline.make({s
  986. hapelist})\n      if (shapelist.get(0).is(PointM)) then\n        if (shapelist.get(0).hasZ) then\n          finalshape=polylinez.make({shapelist})\n        else\n          finalshape=polylinem.make({shapelist})\n        end\n      else\n        finalshape=polyline.make({shapelist})\n      end\n   \n    else\n      'complex polyline\n'      msgbox.info(\"complex\",\"\")\n      listofpolylines={}\n      newshape={}\n      for each aitem in shapelist\n        if (aitem.is(point)) then\n         newshape.add(aitem)\n        else\n    
  987.       listofpolylines.add(newshape)\n          newshape={}\n        end\n      end\n      if (shapelist.get(0).is(PointM)) then\n        if (shapelist.get(0).hasZ) then\n          finalshape=polylinez.make(listofpolylines)\n        else\n          finalshape=polylinem.make(listofpolylines)\n        end\n      else\n        finalshape=polyline.make(listofpolylines)\n      end\n    end\n  end \n\n  \n\nelseif ((shptype=\"Point\") or (shptype=\"Multi-Point\"))  then\n  if (shapelist.count=1) then\n    finalshape=shapelist.get(0)\n    
  988. \n  else\n    if (shapelist.get(0).is(PointM)) then\n      if (shapelist.get(0).hasZ) then\n        finalshape=multipointz.make(shapelist)\n      else\n        finalshape=multipointm.make(shapelist)\n      end\n    else\n      finalshape=multipoint.make(shapelist)\n    end\n\n  end\n  \nend\n\nif (thedialog.getobjecttag.is(Graphic)) then \n  badg=theview.getgraphics.findallbyname(\"TempGraphic\")\n  if (badg <> NIL) then\n    for each abaggraphic in badg.clone\n      theview.getgraphics.removeGraphic(abaggraphic)\n    end\n  end \n
  989.   finalshape=finalshape.clean\n  agoodgraphic=thedialog.getobjecttag\n  asym=agoodgraphic.getsymbol.clone\n\n  agshape=graphicshape.make(finalshape)\n  agshape.setsymbol(asym)\n  agshape.setname(gstring)\n  agshape.setselected(true)\n  theview.getgraphics.add(agshape)\n\nelseif ((thedialog.getobjecttag.is(list)) and (thedialog.getobjecttag.get(0).is(FTAB)) ) then\n  theTheme = theView.GetEditableTheme\n  if (thetheme=NIL) then\n    return(nil)\n  end\n  \n  theftab=thedialog.getobjecttag.get(0)\n  shpfld=theftab.findfield(\"
  990. shape\")\n  therec=thedialog.getobjecttag.get(1)\n  \n  if (thetheme.getftab<>theftab) then\n    return(nil)\n  end\n  theftab.BeginTransaction\n  theoldshp=thedialog.getobjecttag.get(2)\n  if (theview.getprojection.isnull) then\n    theftab.setvalue(shpfld,therec,finalshape)\n  else\n    finalshape=finalshape.returnunprojected(theview.getprojection)\n    theftab.setvalue(shpfld,therec,finalshape)\n  end\n  theftab.EndTransaction\n  \n  if (updateshape.isSelected) then  \n    areafld=theftab.findfield(\"area\")\n    lengthfld=t
  991. heftab.findfield(\"length\")\n    perimfld=theftab.findfield(\"perimeter\")\n    \n    if (shpfld.gettype=#FIELD_SHAPEPOLY) then\n      theftab.BeginTransaction\n        if (areafld<>NIL) then\n          theftab.setvalue(areafld,therec,finalshape.returnarea)\n        end\n        if (perimfld<>NIL) then\n          theftab.setvalue(perimfld,therec,finalshape.returnlength)\n        end\n      theftab.EndTransaction  \n    elseif (shpfld.gettype=#FIELD_SHAPELINE) then\n      theftab.BeginTransaction\n      if (lengthfld<>NIL) t
  992. hen\n        theftab.setvalue(lengthfld,therec,finalshape.returnlength)\n      end\n      theftab.EndTransaction  \n    end\n  end\n  theobjtag=thedialog.findbyname(\"apply\").getobjecttag\n  therect=theobjtag.returnextent.returnUnion(finalshape.returnextent)\n  theview.getdisplay.invalidaterect(therect.returnextent)\n  theview.getdisplay.flush\n  theftab.updateselection\n  \nend\n\ntheApply.setobjecttag(finalshape)\n\nreturn(TRUE)"
  993. )
  994.  
  995. (Script.134
  996.     Name:    "ShapeWin.Open"
  997.     SourceCode:    "theDialog=Self\nthedialog.findbyname(\"ShapeList\").definefromlist({})\n\n'number.setdefformat(\"d.dddddd\")\ntheView=av.getactivedoc\nif (theview.is(View).not) then\n  return(nil)\nend\n\nthedialog.findbyname(\"add\").setenabled(false)\nthedialog.findbyname(\"delete\").setenabled(false)\nthedialog.findbyname(\"Edit\").setenabled(false)\nthedialog.findbyname(\"UpdateShape\").setselected(false)\nthedialog.findbyname(\"UpdateShape\").setenabled(false)\n\ntheDipaly=theView.Getdisplay\n\ntheTheme = theView.GetEditableTheme\nif (thetheme=NIL) 
  998. then\n  theThemes=theview.getactivethemes\n  if (thethemes.count<>0) then\n    theTheme=theThemes.get(0)\n    if (theTheme.is(Ftheme).Not) then\n      theTheme=NIL\n    end\n  end\nend\n\n\nTheGraphics=theView.getgraphics\ntheSelGraphics=theGraphics.getselected\n\nif (theSelGraphics.count = 1)  then\n  aisGraphics=TRUE\n\n  theSelGraphic=theSelGraphics.get(0)  \n  ' -------------------------\n  ' Trap for Graphic Text\n  ' -------------------------\n  if (theSelGraphic.is(graphicText)) then\n    if (theSelGraphic.canedittext) Th
  999. en\n      theSelGraphic.edittext\n      exit\n    else\n      exit\n    end\n  end\n\n  theShape= theSelGraphic.getshape\n  theshapesrc=theShape\n  _shapewinedit=TRUE\n  thedialog.findbyname(\"add\").setenabled(true)\n  thedialog.findbyname(\"delete\").setenabled(true)\n  thedialog.findbyname(\"edit\").setenabled(true)    \n\nelseif (theTheme<>NIL) then\n  aisGraphics=FALSE\n  theFtab=thetheme.getftab\n  if (theFtab.getselection.count=0) then\n    return(nil)\n  end\n  thesel=theftab.getselection\n  theshpfld=theftab.findfield(\"shape\"
  1000. )\n  for each arec in thesel\n    theshapesrc=theftab.returnvalue(theshpfld,arec)\n    therec=arec\n    break\n  end\n  if (theview.geteditabletheme=thetheme) then\n    _shapewinedit=TRUE\n    thedialog.findbyname(\"UpdateShape\").setenabled(TRUE)\n    thedialog.findbyname(\"add\").setenabled(true)\n    thedialog.findbyname(\"delete\").setenabled(true)\n    thedialog.findbyname(\"edit\").setenabled(true)    \n    \n  else\n    _shapewinedit=FALSE\n    thedialog.findbyname(\"UpdateShape\").setenabled(FALSE)\n    thedialog.findbyname(
  1001. \"add\").setenabled(false)\n    thedialog.findbyname(\"delete\").setenabled(false)\n    thedialog.findbyname(\"edit\").setenabled(false)    \n  \n  end\n  \nelse\n  exit\nend\n\n\n\n\n\nif (theView.getProjection.isNull.NOT) then\n  if (aisGraphics=false) then\n    theshape=theshapesrc.returnprojected(theview.getprojection)\n  end\nelse\n    theshape=theshapesrc\nend\n\nshplist={}\n'msgbox.report(theshape.asstring,\"\")\n'exit\n\nif (theShape.is(Circle)) then\n  av.finddialog(\"circle\").open\n  exit  \nelseif (theShape.is(rect)) then\n    Poly1=t
  1002. heShape.aspolygon.aslist.get(0)\n    shplist=poly1.aslist\n    typetxt=\"Polygon\"\n    numv=shplist.count\n\nelseif (theShape.is(Polygon)) then\n\n  if (theshape.aslist.count = 1) then\n    Poly1=theShape.aslist.get(0)\n    shplist=poly1.aslist\n    shplist.removeobj(poly1.aslist.get(0))\n    typetxt=\"Polygon\"\n    numv=shplist.count\n  else\n   numv=0\n   for each apart in theshape.aslist\n     for each apt in apart.aslist\n       shplist.add(apt)\n     end\n    shplist.removeobj(apart.aslist.get(0))\n    shplist.add(\"------Mu
  1003. lti-Part Separator -----\")\n    numv=numv+apart.aslist.count\n   end\n   \n   typetxt=\"Multi-Polygon\"\n  end\nelseif (theShape.is(Line))  then\n  line1=theshape.aspolyline.aslist.get(0)\n  shplist=line1.aslist\n  shplist.removeduplicates\n\n  typetxt=\"Line\"\n  numv=shplist.count\n\nelseif (theShape.is(PolyLine))  then\n'-----------\n  if (theshape.aslist.count = 1) then\n    pline1=theShape.aslist.get(0)\n    shplist=pline1.aslist\n\n    typetxt=\"PolyLine\"\n    numv=shplist.count\n  else\n   numv=0\n   for each apart in theshape.a
  1004. slist\n     for each apt in apart.aslist\n       shplist.add(apt)\n     end\n    \n     shplist.add(\"------Multi-Part Separator -----\")\n     numv=numv+apart.aslist.count\n   end\n   \n   typetxt=\"Multi-Polyline\"\n  end\n\nelseif (theShape.is(Point)) then\n'  Point1=theShape.aslist\n  shplist={theshape}\n  typetxt=\"Point\"\n  numv=shplist.count\n  thedialog.findbyname(\"add\").setenabled(false)\n  thedialog.findbyname(\"delete\").setenabled(false)\n\n\nelseif (theShape.is(Multipoint)) then\n\n  for each apt in theshape.aslist\n    shpl
  1005. ist.add(apt)\n  end\n  numv=theshape.aslist.count\n  \n  typetxt=\"Multi-Point\"\n\nend\n\nif (shplist.Count > 32000) then\n  Msgbox.Error(\"the shape you have selected has too many vertices.\",\"\")\n  theDialog.Close\n  return nil\nend\nthedialog.findbyname(\"ShapeList\").definefromlist(shplist)\nthedialog.findbyname(\"ShapeType\").settext(typetxt)\nnumv.setformat(\"d\")\nthedialog.findbyname(\"NumVertex\").settext(numv.asstring)\nif (aisGraphics) then\n  theselgraphic.setname(\"TempGraphic\")\n  TheDialog.setobjecttag(theselgraphic.clone)
  1006. \nelse\n  TheDialog.setobjecttag({theftab,therec,theshapesrc.clone})\nend\n\nthedialog.findbyname(\"Apply\").setobjecttag(theshapesrc)\nthedialog.findbyname(\"ShapeList\").SelectCurrent(FALSE)\nthedialog.findbyname(\"ShapeList\").select\nthedialog.findbyname(\"ShapeList\").focus"
  1007. )
  1008.  
  1009. (Script.135
  1010.     Name:    "Shapewin.Popup Open"
  1011.     SourceCode:    "theview=av.getactivedoc\nthedialog=av.finddialog(\"ShapeWin\")\nif (thedialog.isopen) then\n\n  '''''''''''''''''''''''''''''''''\n  if (thedialog.getobjecttag.is(Graphic)) then \n    badg=theview.getgraphics.findallbyname(\"TempGraphic\")\n    if (badg <> NIL) then\n      for each abaggraphic in badg.clone\n        theview.getgraphics.removeGraphic(abaggraphic)\n      end\n    end \n    agoodgraphic=thedialog.getobjecttag\n    if (agoodgraphic.is(graphic)) then\n      agoodgraphic.setname(\"\")\n  \n      agoodgraphic.setselect
  1012. ed(FALSE)\n      theview.getgraphics.add(agoodgraphic)\n    end\n\n  elseif ((thedialog.getobjecttag.is(list)) and (thedialog.getobjecttag.get(0).is(FTAB)) ) then\n\n    theTheme = theView.GetEditableTheme\n    if (thetheme<>NIL) then\n    \n      theftab=thedialog.getobjecttag.get(0)\n      \n      if (thetheme.getftab<>theftab) then\n  \n      else\n        shpfld=theftab.findfield(\"shape\")\n        therec=thedialog.getobjecttag.get(1)\n        theoldshp=thedialog.getobjecttag.get(2)\n        theftab.BeginTransaction\n    
  1013.     theftab.setvalue(shpfld,therec,theoldshp)\n        theftab.EndTransaction\n        theview.getdisplay.invalidaterect(theoldshp.returnextent)\n      end\n    end\n    \n  end\n\n  thedialog.findbyname(\"ShapeList\").definefromlist({})\n  thedialog.setobjecttag(NIL)\n  thedialog.close\n\n  ';''''''''''''''''''''''''''\n  \nend\n  thedialog.open\n"
  1014. )
  1015.  
  1016. (Script.136
  1017.     Name:    "ShapeWin.SelectPoint"
  1018.     SourceCode:    "theView=av.getactivedoc\nif (theview.is(View).not) then\n  return(nil)\nend\n\nthedialog=SELF.getdialog\nthepoints=SELF.getselection\nthenumpoints=SELF.getlist.count\nif (_shapewinedit=TRUE) then\n  if (thepoints.count = 1) then\n   if (thenumpoints = 1) then\n     thedialog.findbyname(\"add\").setenabled(false)\n     thedialog.findbyname(\"delete\").setenabled(FALSE)\n     thedialog.findbyname(\"Edit\").setenabled(true)\n   else\n     thedialog.findbyname(\"add\").setenabled(true)\n     thedialog.findbyname(\"delete\").setenabled(t
  1019. rue)\n     thedialog.findbyname(\"Edit\").setenabled(true)\n   end\n  else\n   thedialog.findbyname(\"add\").setenabled(FALSE)\n   thedialog.findbyname(\"delete\").setenabled(TRUE)\n  thedialog.findbyname(\"Edit\").setenabled(FALSE)\n  end\nelse\n  thedialog.findbyname(\"add\").setenabled(FALSE)\n  thedialog.findbyname(\"delete\").setenabled(FALSE)\n  thedialog.findbyname(\"Edit\").setenabled(FALSE)\n\nend\ngplist={}\n\nfor each thepoint in thepoints\n  if (thepoint.is(Point).not) then\n    continue\n  end\n  x=thepoint.getx\n  y=thepoint.ge
  1020. ty\n  agraphic=graphicshape.make(x@y)\n\n'  agraphic.getsymbol.setcolor(color.getred)\n  agraphic.setname(\"VertexPoints\")\n\n  gplist.add(agraphic)\n\nend\n\n\nthepts=av.getactivedoc.getgraphics.findallbyname(\"VertexPoints\")\nif (thepts <> NIL) then\n  for each apt in thepts.clone\n    av.getactivedoc.getgraphics.removeGraphic(apt)\n  end\nend\nfor each ag in gplist\n  av.getactivedoc.getgraphics.addbatch(ag)\nend\nav.getactivedoc.getgraphics.endbatch\n\n"
  1021. )
  1022.  
  1023. (Script.137
  1024.     Name:    "ShapeWin.Vertex edit Activate"
  1025.     SourceCode:    "thedialog=SELF\ntheview=av.getactivedoc\nif (theview.is(view).not) then\n  self.close\n  return(nil)\nend\n\nif (av.finddialog(\"ShapeWin\").getobjecttag.is(list)) then\n  if (theview.GetEditableTheme = NIL) then\n    self.close\n    av.finddialog(\"ShapeWin\").close\n  end\nend\n\n\ntheTheme = theView.GetEditableTheme\nif (theTheme=NIL) then\n  TheGraphics=theView.getgraphics\n  theSelGraphics=theGraphics.getselected\n  \n  if (theSelGraphics.count <> 1) then\n    self.close\n    av.finddialog(\"ShapeWin\").close\n  end\n\n  theSelGraph
  1026. ic=theSelGraphics.get(0)  \n  ' -------------------------\n  ' Trap for Graphic Text\n  ' -------------------------\n  if (theSelGraphic.is(graphicText)) then\n    self.close\n    av.finddialog(\"ShapeWin\").close\n  end\n\n  theShape= theSelGraphic.getshape\n  theshapesrc=theshape\nelse\n  theFtab=thetheme.getftab\n  if (theFtab.getselection.count=0) then\n    self.close\n    av.finddialog(\"ShapeWin\").close\n  end\n  thesel=theftab.getselection\n  theshpfld=theftab.findfield(\"shape\")\n  for each arec in thesel\n    theshapesrc=
  1027. theftab.returnvalue(theshpfld,arec)\n    break\n  end\nend\n\nif (theshapesrc<>av.finddialog(\"ShapeWin\").findbyname(\"apply\").getobjecttag) then    \n    msgbox.warning(\"The selected shape has been changed, the dialog will now re-initalize\",\"Warning\")\n    av.finddialog(\"ShapeWin\").findbyname(\"apply\").setobjecttag(av.finddialog(\"ShapeWin\").findbyname(\"apply\").getobjecttag)\n    av.finddialog(\"ShapeWin\").close\n    av.finddialog(\"ShapeWin\").open\n    self.close\n\nend\n"
  1028. )
  1029.  
  1030. (Script.138
  1031.     Name:    "ShapeWin.Vertex Edit Cancel"
  1032.     SourceCode:    "self.getdialog.close\n\nif (av.getactivedoc.is(view)) then\nav.getactiveGUI.gettoolbar.getcontrols.get(0).select\nend\n'shapewin=av.finddialog(\"ShapeWin\")\n'shapewin.activate\n"
  1033. )
  1034.  
  1035. (Script.139
  1036.     Name:    "ShapeWin.Vertex Edit OK"
  1037.     SourceCode:    "thedialog=self.getdialog\n\nif (av.getactivedoc.is(view)) then\n  av.getactiveGUI.gettoolbar.getcontrols.get(0).select\nend\n\nshapewin=av.finddialog(\"ShapeWin\")\nx=thedialog.findbyname(\"x\").gettext.asnumber\ny=thedialog.findbyname(\"y\").gettext.asnumber\n\n\napt=x@y\nif (thedialog.findbyname(\"m\").isVisible) then\n  m=thedialog.findbyname(\"m\").gettext.asnumber\n  apt=pointM.make(x,y,m)\nend\n\nif (thedialog.findbyname(\"z\").isVisible) then\n  z=thedialog.findbyname(\"z\").gettext.asnumber\n  apt=pointz.make(x,y,z)\nend\n\nif ((thedi
  1038. alog.findbyname(\"z\").isVisible) and \n   (thedialog.findbyname(\"m\").isVisible)) then\n  m=thedialog.findbyname(\"m\").gettext.asnumber\n  z=thedialog.findbyname(\"z\").gettext.asnumber\n  apt=pointM.make(x,y,m)\n  apt=apt@z\nend\n\n\nshapewin.findbyname(\"ShapeList\").setcurrentvalue(apt)\n\nif (av.getactivedoc.is(view).not) then\n  return(nil)\nend\n\n\nagraphic=graphicshape.make(apt)\nthepts=av.getactivedoc.getgraphics.findallbyname(\"VertexPoints\")\nif (thepts <> NIL) then\n  for each apt in thepts.clone\n    av.getactivedoc.getgr
  1039. aphics.removeGraphic(apt)\n  end\nend\nagraphic.setname(\"VertexPoints\")\nav.getactivedoc.getgraphics.add(agraphic)\nav.getactivedoc.getdisplay.flush\nav.getactivedoc.getdisplay.invalidaterect(rect.make(apt,1@1))\n\nthedialog.close\n\nshapewin.findbyname(\"Apply\").click\n\n"
  1040. )
  1041.  
  1042. (Script.140
  1043.     Name:    "ShapeWin.XYActiveate"
  1044.     SourceCode:    "thedialog=self\ntheview=av.getactivedoc\n\nav.clearstatus\nif (thedialog.isOpen.Not) then\n  return(nil)\nend\n\nif (theview.is(view).not) then\n\n  for each acontrol in theDialog.getcontrolpanel.getcontrols\n    if (acontrol.is(ControlPanel)) then\n      for each thectl in acontrol.getcontrols\n         thectl.setenabled(false)\n      end\n    else\n      acontrol.setenabled(false)\n    end\n   thedialog.findbyname(\"Cancel\").setenabled(TRUE)\n  end\nelse\n  for each acontrol in theDialog.getcontrolpanel.getcontrols\n    if (aco
  1045. ntrol.is(ControlPanel)) then\n      for each thectl in acontrol.getcontrols\n         thectl.setenabled(TRUE)\n      end\n    else\n      acontrol.setenabled(TRUE)\n    end\n'   thedialog.findbyname(\"Cancel\").setenabled(TRUE)\n  end\n\n\nend\n"
  1046. )
  1047.  
  1048. (Script.141
  1049.     Name:    "MyDialogExt.CanUnLoad"
  1050.     SourceCode:    "'return (System.CanUnloadLibrary(self.GetDependencies.Get(0)))\nreturn(TRUE)"
  1051. )
  1052.  
  1053. (Script.142
  1054.     Name:    "MyDialogExt.Unload"
  1055.     SourceCode:    "' MyDialogExt.Unload\nDialog.DetachFromExtension(self)"
  1056. )
  1057.  
  1058. (Script.143
  1059.     Name:    "MyDialogExt.Install"
  1060.     SourceCode:    "'' MyDialogExt.Install\n'' Only install user interface components if a project is open\n'if (av.GetProject = nil) then\n'  return nil\n'end\n'\n'' Retrieve the popupitem  from the extension (self) and \n'' add it after the first popupset\n'anitem=SELF.get(3)\n'\n'viewGUI = av.GetProject.FindGUI(\"View\")\n'apopupset=viewGUI.GetPopups.findbylabel(\"Menu\")\n'apopupset.add(anitem,99)\n'viewGUI.SetModified(TRUE)"
  1061. )
  1062.  
  1063. (Script.144
  1064.     Name:    "MyDialogExt.UnInstall"
  1065.     SourceCode:    "'' MyDialogExt.UnInstall\n'if (av.GetProject = nil) then \n'  return nil\n'end\n'\n'if (av.GetProject.IsClosing) then\n'  return nil\n'end\n'\n'' Remove the button from the button bar\n'apopup = av.findgui(\"view\").GetPopups.findbylabel(\"Menu\")\n'apopup.remove(apopup.findbyscript(\"Shapewin.PopUp Open\"))"
  1066. )
  1067.  
  1068.